Documentation for Users
1.0.2
Perception Toolbox for Virtual Reality (PTVR) Manual
|
That's all !
As an illustration, the image below shows a Windows Explorer window showing the files and directories present in the PTVR_Researchers directory after cloning. In this example, my_path_for_PTVR_program (highlighted in green) where you chose to clone PTVR is: **C:\Users\castet\Documents\PTVR**
Note again that this path is totally chosen by the user whereas the directory PTVR_Researchers was automatically created when you cloned the PTVR project.
Note: in the example above, the PYTHONPATH that the user has to define in the Pythonpath Manager is : C:\Users\castet\Documents\PTVR\PTVR_Researchers\
(see snapshot from Spyder below)
(see more details on Git cloning in https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html#clone-with-https )
If you insist on not using Git cloning and pulling (which is the most convenient way to maintain PTVR when new versions are added), you can also try the following solution.
Go to the first PTVR_Researchers git page :
https://gitlab.inria.fr/PTVR_Public/PTVR_Researchers/ You'll see a Release button next to the takeoff of a rocket.
Click on this button, and you'll be able to download the full PTVR_Researchers code in a compressed format. Once downloaded, and unzipped, you have to place it in a directory called PTVR_Researchers (do NOT use another name).
The name 'PTVR_Researchers' is mandatory!.
Once the unzipped code is in the PTVR_Researchers directory, you can place the latter in any path on your PC. For instance, as already examplified in the '1st solution' section above, this my_path_for_PTVR_program path might be for instance:
**C:\Users\castet\Documents\PTVR**.
Let's insist, errors will occur when you run a PTVR script if the unzipped code is not contained in a directory called PTVR_Researchers (see the example figure in the '1st solution' section above).
Everytime a new PTVR release will be available, you will have to replace the previous installation with the most recent one using this second solution. Alternatively, you can keep the previous installation and add the new version in a different path on your PC (in this case, do not forget to add the new PYTHONPATH in the Pythonpath Manager (see above in the 'first solution' section).
Be patient ! In the future, it will be possible to install PTVR with a standalone package.
You will need a Python IDE (Integrated Development Environment) to run and create PTVR scripts.
We strongly recommend the open-source IDE Spyder. VS code or PyCharm are also nice alternatives.
Otherwise, you will get an error message from your IDE.
Here is the procedure to follow with Spyder to set the Python Environment Variable PYTHONPATH:
Go to Tools -> 'PYTHONPATH Manager', and add the following path:
my_path_for_PTVR_program\PTVR_Researchers
(For the definition of the my_path_for_PTVR_program, see the subsection "Install PTVR Manually" above ) (see snapshot from Spyder below)
Otherwise, you will get the following error message in the console of your IDE : ModuleNotFoundError : No Module named 'PTVR
You may have to restart Spyder after this procedure.